//输入检查
// $("#tel").onblur = function (){
//     let CtelNum = /^1[3-9]{1}[0-9]{9}$/;
//     if (!CtelNum.test($('#tel').val())){
//         $('#telResult').style.display = 'block';
//         this.focus();
//     }
// }
//
// $("#pass").onblur = function (){
//     let check = /^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d]{8,16}$/;
//     if (!check.test($('#pass').val())){
//         $('#passResult').style.display = 'block';
//         this.focus();
//     }
// }

function telCheck(){
    var tel = $('#tel').val();
    var CtelNum = /^1[3-9]{1}[0-9]{9}$/;
    if (!CtelNum.test(tel)){
        $('#telResult')[0].style.display = 'block';
        this.focus();
    }else{
        $('#telResult')[0].style.display = 'none';
    }
}

function passCheck(){
    var pass = $('#pass').val();
    var check = /^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d]{8,16}$/;
    if (!check.test(pass)){
        $('#passResult')[0].style.display = 'block';
        this.focus();
    }else{
        $('#passResult')[0].style.display = 'none';
    }
}

function checkAgain(){
    var onepass = $('#pass').val();
    var twopass = $('.passTwo').val()
    if (twopass!=onepass){
        $('#passCheck')[0].style.display='block'
    }else{
        $('#passCheck')[0].style.display='none'
    }
}